import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int n= scan.nextInt();
        if(n%7==0||n%10==7||n/10==7)
            System.out.println("pass");
        else
            System.out.println(n);
    }
}
